<?php
// +----------------------------
// | Created by PhpStorm
// +----------------------------
// | Author: YnnSon
// +----------------------------
namespace app\api\controller\v1;

use app\api\service\Token as TokenService;
use think\Controller;

/**
 * 控制器基类
 * Class BaseController
 * @package app\api\controller\v1
 */
class BaseController extends Controller
{
    /**
     * @Desc 校验基本权限
     */
    protected function checkPrimaryScope()
    {
        TokenService::needPrimaryScope();
    }

    /**
     * @Desc 校验用户权限
     */
    protected function checkUserScope()
    {
        TokenService::needUserScope();
    }
}